
using System;
using Qdb.Internal.Handlers;
using Qdb.Marshall;

namespace Qdb.Internal.Handlers
{
	/// <exclude></exclude>
	public class DateHandler0 : DateHandler
	{
		public override object Read(IReadContext context)
		{
			long value = context.ReadLong();
			if (value == long.MaxValue)
			{
				return PrimitiveNull();
			}
			return new DateTime(value);
		}
	}
}
